package com.acme.concurrent.pool.connection;

import com.acme.concurrent.pool.DataSourceException;
import com.acme.concurrent.pool.impl.SelfRegulatingSemaphorePool;

import java.sql.Connection;

/**
 * @author Gregory Sobko
 */
public class ConnectionPool extends SelfRegulatingSemaphorePool<Connection> {
    public ConnectionPool(String connectionString, int max) throws DataSourceException {
        super(new ConnectionSource(connectionString),  max);
    }

    public ConnectionPool(String connectionString, int min, int max) throws DataSourceException {
        super(new ConnectionSource(connectionString), min, max);
    }
}
